package com.csglxt.service;

import com.csglxt.base.DaoSupport;
import com.csglxt.domain.User;

/**
 * 
 * @ClassName: UserService
 * @Description: 用户业务接口
 * @author Delver_Si
 * @date 2015-5-28 下午11:13:58
 * 
 */
public interface UserService extends DaoSupport<User> {

    /**
     * 根据登录名与密码查询用户
     * 
     * @param loginName
     * @param password
     *            明文密码
     * @return
     */
    User findByUsernameAndPassword(User user);

    /**
     * 
     * @Title: findByUsername
     * @Description: TODO(根据名字查用户)
     * @param user对象
     * @return
     * @throws
     */
    User findByUsername(User user);

}
